//
//  LSZChenJiManager.m
//  PartyClassCloud
//
//  Created by 梁素珍 on 2018/10/12.
//  Copyright © 2018年 九酷. All rights reserved.
//

#import "LSZChenJiManager.h"

@implementation LSZChenJiManager
-(id)initWithChenJiArray :(NSArray *)array
{
    self = [super init];
    if (self) {
        self.mutArrayData = [[NSMutableArray alloc]init];
        NSMutableArray * arrayMut = [[NSMutableArray alloc]init];
        for (NSDictionary * dic in array) {
            LSZChenJiMg * mg = [[LSZChenJiMg alloc]init];
            mg.mark = NullStringjudgment(NSStr(dic[@"mark"]));
            NSString * strUrl = NullStringjudgment(NSStr(dic[@"coverUrl"]));
            mg.coverUrl = [NSString stringWithFormat:@"%@%@",URLTotalWeb,strUrl];
            mg.name = NullStringjudgment(NSStr(dic[@"name"]));
            mg.summary = NullStringjudgment(NSStr(dic[@"summary"]));
        if ([[dic allKeys] containsObject:@"score"]) {
            mg.score = NullStringjudgment(NSStr(dic[@"score"]));
        }
            [arrayMut addObject:mg];
        }
        self.mutArrayData = arrayMut;
    }
    return self;
}
@end
@implementation LSZChenJiMg
@end
